Skip to main content

All Questions

0votes
1answer
45views

Allow Lambda function in Amplify to access data

In my amplify (Gen2) project my basic amplify file structure is: ├── amplify │ ├── backend.ts │ ├── custom-functions │ │ └── helloworld │ │ ├── index.py │ │ └── resource.ts │ ...
Nick's user avatar
  • 176
0votes
1answer
52views

Write capacity exceeded when updating with batches

I have a lambda function (python) where I update existing dynamodb items using PartiQL. The update is executed in batches of 5, and I use the standard retry mode with 5 attempts: from botocore.config ...
Mister_L's user avatar
0votes
1answer
25views

AWS TwinMaker Coding Error with DataReader

I am trying to replicate this on AWS https://aws.amazon.com/blogs/iot/own-data-source-aws-iot-twinmaker/ However, I am finding this error on the DataReader: See Image This is the code: import * as AWS ...
ash bash's user avatar
0votes
0answers
31views

Pagination Token in DynamoDB | .NET

I try to realise the logic for getting paginations from AWS DynamoDB lambda on .NET This is my code public async Task<PaginationItems<Company>> GetAllCompaniesPaginated( ...
FX_Sektor's user avatar
1vote
1answer
85views

How do I execute a BatchWriteCommand from Lambda to DynamoDB using the @aws-sdk/lib-dynamodb package?

I am currently trying to write to multiple existing databases with one call to BatchWriteCommand. All architecture is currently setup using the AWS CDK, and this function is being executed within a ...
westernwand's user avatar
0votes
1answer
296views

AWS Amplify Gen 2 REST API with Lambda and DynamoDB

I am using AWS Amplify Hosting (Gen 2) and have created a REST API backed by Lambda. The Lambda function is supposed to send an email (which works fine) and save the submitted data to a DynamoDB table....
dev.learn's user avatar
1vote
1answer
56views

How to query DynamoDB with multiple filters (platform, type, and rate_id) to return only monthly/weekly data

I'm trying to query a DynamoDB table to retrieve data for the current month or current week, depending on the filter applied (data_type = monthly or weekly). However, I'm encountering an issue where ...
Rania's user avatar
0votes
0answers
24views

Get DynamoDB item as Document in .Net failed with : `Specified cast is not valid. at Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.AsString()`

I'm trying to get items from aws DynamoDb using the following code: var request = new GetItemRequest() { TableName = AccountsTable, Key = new Dictionary<string, AttributeValue>() { ...
Ahmed Abd Elmoniem's user avatar
0votes
0answers
20views

Device logging for AWS Cognito UserPool

I'm using AWS Cognito Userpool for user login in my app. And I use a custom auth flow with Lambda triggers: Define auth challenge, create auth challenge, verify auth challenge. Everytime an user log ...
hieuph13's user avatar
0votes
1answer
63views

multiple lambda trying to update DynamoDB, how to make sure that its consistent?

I have a situation where 8-10 lambdas are constantly reading and writing in same DynamoDB table and often same record. How to avoid race condition in this situation ? The scale of operation is in ...
Banarasi Vaibhav's user avatar
0votes
1answer
40views

DeleteItem API throws error - The provided key element does not match the schema (DynamoDB)

I'm using the java v2 sdk and trying to delete an item from the table using below code public static DeleteItemResponse deleteDynamoDBItem(String key, String keyVal) { Map<String, ...
user1184100's user avatar
0votes
1answer
409views

Using AWS Amplify, I'm trying to find the table name for the dynamodb table that is created with the data/resource. How Can I find that?

I'm trying to find the table name to use the dynamo db that is auto generated using AWS Amplify after creating a schema using 'data'. How can I find that? Here is what I've tried: resource.ts file ...
nycynik's user avatar
  • 7,537
0votes
1answer
90views

Accessing DynamoDb from lambda code throws SdkClientException: Unable to load credentials from system settings

I'm trying to add a record from lambda into table in dynamodb using enchanced client and java v2 sdk. DYNAMO_DB = DynamoDbClient.builder() .region(REGION) .build(); ...
user1184100's user avatar
0votes
2answers
48views

transactional lambda in aws dynamodb to generate a counter of new records from one table to another table?

In dynamodb I have a "votes" table that records a unique email, and only one option (out of 10 possible), in the hypothetical case that more than 1000 votes are made per second, I could ...
Figueduff's user avatar
0votes
0answers
174views

AWS Firehose Partition key's value should not be null or empty

In Firehose data is coming from Kinesis Stream. I am using data transformation in firehose so that I can use in dynamic partitioning and put the data in s3 folder wise (tableName) because the data is ...
Karmesh Duggar's user avatar

153050per page
close